<div class="kt-modal-content">
    <div class="modal-header">
        <button type="button" class="close" ng-click="$dismiss()" aria-label="Close">
            <em class="ion-ios-close-empty sn-link-close"></em>
        </button>
        <h4 class="modal-title">{{kt.title}}</h4>
    </div>
    <div class="modal-body">
        <div ba-panel ba-panel-class="with-scroll light-text">
            <form name="Form" ng-submit="kt.save()">
                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="name">任务名称</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="name" placeholder="名称"
                           ng-model="kt.job.jobName" required>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="job_group">任务组</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="job_group" placeholder="任务组"
                           ng-model="kt.job.jobGroup" required>
                    <!--<select ng-disabled="kt.isView" class="form-control" ng-model="kt.job.deviceUid" id="type"-->
                            <!--title="所属设备" data-container="body" selectpicker required-->
                            <!--ng-options="item.value as item.label for item in kt.devList">-->
                    <!--</select>-->
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="trigger-name">触发器名称</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="trigger-name" placeholder="填写触发器名称"
                           ng-model="kt.job.triggerName">
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="trigger-group">触发器组</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="trigger-group" placeholder="填写触发器组"
                           ng-model="kt.job.triggerGroup">
                </div>

                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="class-name">类名</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="class-name" placeholder="填写任务类名"
                           ng-model="kt.job.className">
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="cron">cronExpression</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="cron" placeholder="填写cronExpression"
                           ng-model="kt.job.cronExpression">
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-6" ng-if="kt.isShowPause">
                    <label for="pause">是否暂停</label>
                    <!--<input ng-disabled="kt.isView" type="number" class="form-control" id="level" placeholder="目录层级"-->
                           <!--ng-model="kt.job.imageW">-->
                    <select ng-disabled="kt.isView" class="form-control" ng-model="kt.job.pause" id="pause"
                            title="暂停状态" data-container="body" selectpicker required
                            ng-options="item.value as item.label for item in kt.pauseDict">
                    </select>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-6"  ng-if="kt.isShowEnable">
                    <label for="enable">是否启用</label>
                    <select ng-disabled="kt.isView" class="form-control" ng-model="kt.job.enable" id="enable"
                            title="启用状态" data-container="body" selectpicker required
                            ng-options="item.value as item.label for item in kt.enableDict">
                    </select>
                </div>

                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label for="desc">任务描述</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="desc" placeholder="任务描述信息"
                           ng-model="kt.job.description">
                </div>

                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <button type="submit" class="btn btn-danger btn-with-icon" ng-if="!kt.isView">
                        <i class="ion-heart"></i>保存
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>